import request from '@/utils/request'
const baseUrl = '/cz-rentbox/api/v1/feeDetails' // 业务费管理
// http://47.122.3.254:9999/cz-system/api/v1

// 列表
// # POST {{baseUrl}}/page
// 费用明细:根据订单Id获取费用明细列表 
// */
export const selectFeeDetailsListByOrderId = (data: any) => {
  return request({
    url: baseUrl + '/selectFeeDetailsListByOrderId',
    method: 'POST',
    data:data
  })
}
/*
 列表
# POST {{baseUrl}}/page
*/
export const exporFeeDetails = (data: any) => {
  return request({
    responseType: 'blob',
    url: baseUrl + '/exporFeeDetails',
    method: 'POST',
    data:data
  })
}
/*根据id查询费用明细
* @param {int} id 
*/
export const getFeeDetai = (data: any) => { 
  return request({
    url: baseUrl+'/selectFeeDetailsListByOrderId',
    method: 'POST', 
    data:data
  })
}
//费用明细列表金额总
export const getFeeDetailsSumAmount = (data: any) => {
  return request({
    url: baseUrl + '/getFeeDetailsSumAmount',
    method: 'POST',
    data:data
  })
}
/*
 列表
# POST {{baseUrl}}/page
*/
export const getTableList = (data: any) => {
  return request({
    url: baseUrl + '/page',
    method: 'POST',
    data:data
  })
}
  // 查询费用明细金额总计
export const getFeeDetailsListAmountSum = (data: any) => {
  return request({
    url: baseUrl + '/getFeeDetailsListAmountSum',
    method: 'POST',
    data:data
  })
}
  // 编辑备注
export const updateFeeDetailsRemark = (data: any) => {
    return request({
      url: baseUrl + '/updateFeeDetailsRemark',
      method: 'PUT',
      data:data
    })
  }
  //详情应收应付批量删除
  export const feeDetails = (ids: any) => {
    return request({
      url: baseUrl,
      method: 'DELETE',
      data:ids
    })
  }
// // 新增费用业务明细
// export const addFeeBusinessDetails = (data: any) => {
//   return request({
//     url: baseUrl + '/addFeeBusinessDetails',
//     method: 'POST',
//     data:data
//   })
// }
